package com.sh.data.engine.domain.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sh.data.engine.domain.api.model.domain.DataApiTopUserReqDomain;
import com.sh.data.engine.repository.dao.api.entity.DataApiUserStatisticsEntity;

import java.util.List;

/**
 * @author : fuchen
 * @date : 2022/2/10 16:15
 */
public interface DataApiUserStatisticsService extends IService<DataApiUserStatisticsEntity> {

    Long getTotalCountByProjectIdAndUserId(Long projectId, String userId);

    Long getFailCountByProjectIdAndUserId(Long projectId, String userId);

    List<DataApiTopUserReqDomain> getDataApiTopUserReqDomainList(Long projectId);
}
